Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


GetCommand

Mac OS

The GetCommand method returns the command ID for the specified menu/menu item designation.

ODCommandID GetCommand (in ODMenuID menu, 
                        in ODMenuItemID menuItem);
menu
A platform-specific identifier for a menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menuItem
A platform-specific identifier for a menu item. On the Mac OS platform, the menu item ID is defined as a signed 16-bit value.
return value
The command ID for the specified menu/menu item designation, or kODNoCommand if the command ID does not exist. On the Mac OS platform, the command ID is defined as a signed 32-bit value.
SEE ALSO
The ODCommandID type (page 895).
Listing 2-29 on page 84 in OpenDoc Cookbook.
"Menu Events" on page 193 in OpenDoc Programmer's Guide.
"Registering and Retrieving Command IDs" on page 242 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help